Ext.define('Usws.view.Navigation', {
    extend: 'Ext.tree.Panel',
	xtype: 'navigation',
    title: '系统功能菜单',
    rootVisible: false,
    lines: false,
    useArrows: true,
    initComponent: function() {
        Ext.apply(this, {
            store: new Ext.data.TreeStore({
            	fields: [
            	    {
	                    name: 'text',
	                    type: 'string'
                	},
                	{
                        name: 'name',
                        type: 'string'
                    }
                ],
                proxy: {
                    type: 'ajax',
                    url: '/sysws/obj/consoleMenu.json'
                },
                root: {
                    text: '系统功能菜单',
                    id: 'src',
                    expanded: true
                }
            })
        });
        this.callParent();
    }
});